// #ifdef MP-WEIXIN
const wxAccessInfo = uni.getAccountInfoSync()
const env = wxAccessInfo.miniProgram.envVersion // publish , develop
// const env = 'publish' // publish , develop
// #endif
console.log(env)
const config = {
	line: 'https://xiumoka.qifuxiong.com/api',
	test: 'https://xiumoka.qifuxiong.com/api',
	qnAssetsHost: 'https://qkj.cdgsxq.com/',
	upLoadAction: 'https://up-z0.qiniup.com'
}
Object.defineProperty(config, 'Host', {
	configurable: true,
	enumerable: true,
	get() {
		console.log('get: ' + env)
		return ['trial', 'develop'].includes(env) ? config.test : config.line
	}
})
Object.defineProperty(config, 'codeHost', {
	configurable: true,
	enumerable: true,
	get() {
		console.log('get: ' + env)
		return ['trial', 'develop'].includes(env) ? 'https://test.qukeju.com/picture' : 'https://xcx.qukeju.com/picture'
	}
})
// #ifdef MP-WEIXIN
const codeHost = ['trial', 'develop'].includes(env) ? 'https://test.qukeju.com/picture' : 'https://xcx.qukeju.com/picture'
// #endif
const qnAssetsHost = 'https://qkj.cdgsxq.com/'
const upLoadAction = 'https://up-z0.qiniup.com'
export {
	qnAssetsHost,
	config,
	upLoadAction
}